Sound

General Action Statement

Syntax samples

SOUND <string expression>

SOUND "Chimes.wav"

SOUND "Tada.wav"

Description

Plays a wavefile. Wavefiles, which have the extension .WAV, may be purchased commercially or created with a sound card. A few sounds, such as the examples here, come with Windows and are found in the Windows directory. Use SOUND to alert a model’s user that some event has taken place.

Valid In

Any logic.

Components

<string expression>

The DOS name of the wavefile to be played. This expression must evaluate to a valid DOS file. It may include a path.

Example

The example below shows an entity’s operation logic. A variable called Total is used to keep track of the number of entities passing through the location. Every 100th entity to pass through the location will cause the sound "Tada" to sound, thus notifying the user of the 100th entity. In addition, ProModel resets the counter.

 

 

See Also

PAUSE, DISPLAY, and PROMPT.